package com.example.yoga.service;

import com.example.yoga.entity.Course;
import com.example.yoga.mapper.CourseMapper;
import com.example.yoga.mapper.UserMapper;
import com.example.yoga.service.ICourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-19
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public int getTotalCourse() {
        int totalCourse = courseMapper.getTotalCourse();
        return totalCourse;
    }
}
